package com.gosophiaigit.contact.busi.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * 联系人组别管理实体
 * 
 * @author zhanghuanchao
 * @since 2011-03-23
 */

@SuppressWarnings("serial")
public class ContactGroup implements java.io.Serializable {

	/** 公共组 */
	public static final long PUBLIC_GROUP = 1239L;
	/** 个人组 */
	public static final long PRIVATE_GROUP = 1240L;
	
	/** 组编号 */
	private Long groupId;
	/** 组名称 */
	private String groupName;
	/** 组类型 */
	private Long groupType;
	/** 组拥有者  保存的是联系人Id */
	private Long groupOwner;
	/** 组下人员数量 */
	private int groupPersonNumber;

	private Set<ContactGroupRelation> contactGroupRelations = new HashSet<ContactGroupRelation>();

	public ContactGroup() {

	}

	public ContactGroup(Long groupId, String groupName) {
		super();
		this.groupId = groupId;
		this.groupName = groupName;
	}
	
	public Long getGroupId() {
		return groupId;
	}

	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public Long getGroupType() {
		return groupType;
	}

	public void setGroupType(Long groupType) {
		this.groupType = groupType;
	}

	public Long getGroupOwner() {
		return groupOwner;
	}

	public void setGroupOwner(Long groupOwner) {
		this.groupOwner = groupOwner;
	}

	public Set<ContactGroupRelation> getContactGroupRelations() {
		return contactGroupRelations;
	}

	public void setContactGroupRelations(
			Set<ContactGroupRelation> contactGroupRelations) {
		this.contactGroupRelations = contactGroupRelations;
	}

	public int getGroupPersonNumber() {
		return groupPersonNumber;
	}

	public void setGroupPersonNumber(int groupPersonNumber) {
		this.groupPersonNumber = groupPersonNumber;
	}
}